const session = window.sessionStorage;
import axios from 'axios'
const fn = {
	install (Vue, options) {
		Vue.prototype.$storageSet = function (key, data){
			return session.setItem(key,typeof data != 'string' ? JSON.stringify(data) : data);
		}
		Vue.prototype.$storageGet = function (key){
			let data = session.getItem(key);
			if(!data){
				return false
			}
			return data;
		}
		Vue.prototype.$storageRemove = function (key){
			return session.removeItem(key)
		}
        Vue.prototype.axios = axios;
        Vue.prototype.$baseUrl = 'http//:wyds.91wangjing.com/';
	}
}

export default fn;